package com.pmsystem.dao;


import com.pmsystem.pojo.CleanMan;
import com.pmsystem.pojo.CleanManExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;


public interface CleanManMapper {
    long countByExample(CleanManExample example);

    int deleteByExample(CleanManExample example);

    int deleteByPrimaryKey(Integer cleanManId);

    int insert(CleanMan record);

    int insertSelective(CleanMan record);

    List<CleanMan> selectByExample(CleanManExample example);

    CleanMan selectByPrimaryKey(Integer cleanManId);

    int updateByExampleSelective(@Param("record") CleanMan record, @Param("example") CleanManExample example);

    int updateByExample(@Param("record") CleanMan record, @Param("example") CleanManExample example);

    int updateByPrimaryKeySelective(CleanMan record);

    int updateByPrimaryKey(CleanMan record);



	/**  
	 * <p>Title: selectManCount</p >  
	 * <p>Description: 查询保洁人员数据条数</p >  
	 * @author 魏家洛
	 * @return  
	 */  
	int selectManCount(@Param("condition")String condition);

	/**  
	 * <p>Title: deleteManById</p >  
	 * <p>Description: 删除id对应保洁人员数据</p >  
	 * @author 魏家洛
	 * @param id
	 * @return  
	 */  
	int deleteManById(Integer id);

	/**  
	 * <p>Title: selectManById</p >  
	 * <p>Description: 查询id对应保洁人员</p >  
	 * @author 魏家洛
	 * @param id
	 * @return  
	 */  
	CleanMan selectManById(Integer id);

	/**  
	 * <p>Title: updateManByMan</p >  
	 * <p>Description: 更新保洁人员数据</p >  
	 * @author 魏家洛
	 * @param cleanMan
	 * @return  
	 */  
	int updateManByMan(CleanMan cleanMan);

	/**  
	 * <p>Title: addMan</p >  
	 * <p>Description: 添加保洁人员数据</p >  
	 * @author 魏家洛
	 * @param cleanMan
	 * @return  
	 */  
	int addMan(CleanMan cleanMan);

	/**  
	 * <p>Title: selectManPage</p >  
	 * <p>Description: 查询对应分页保洁人员数据</p >  
	 * @author 魏家洛
	 * @param start
	 * @param pageSize
	 * @return  
	 */  
	List<CleanMan> selectManPage(@Param("start") int start, @Param("pageSize") Integer pageSize,@Param("condition")String condition);
}